Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [PubSub] encode option #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Seb33300
Copy link

After we upgraded from v1 to v2, the consume() method is not longer returning the message data decoded.

Before, it was done by setting the encode option here:

if ($connectionType === 'grpc') {
$this->connection = new Grpc($this->configureAuthentication($config));
$this->encode = false;
} else {
$this->connection = new Rest($this->configureAuthentication($config));
$this->encode = true;
}

It looks like the encode is never set, and there is no way to set it anymore.

I am not sure if this sis the correct fix for this issue.

Copy link

google-cla bot commented Jun 10, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@product-auto-label product-auto-label bot added the api: pubsub Issues related to the googleapis/google-cloud-php-pubsub API. label Jun 10, 2024
@Seb33300 Seb33300 changed the title Fix encode option feat: [PubSub] encode option Jun 10, 2024
Copy link

conventional-commit-lint-gcf bot commented Jun 10, 2024

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@Seb33300 Seb33300 changed the title feat: [PubSub] encode option fix: [PubSub] encode option Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the googleapis/google-cloud-php-pubsub API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant